<%@ Page Language="C#" MasterPageFile="~/SalesOneWeb.Master" AutoEventWireup="true" CodeBehind="SearchMessages.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.SearchMessages" %>

<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc2" %>
<%@ Register src="../UserControls/UCGridButtons.ascx" tagname="UCGridButtons" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
        .style6
        {
            width: 169px;
        }
        .style7
        {
            width: 94px;
        }
        .style8
        {
            height: 18px;
        }
        .style9
        {
            width: 169px;
            height: 18px;
        }
    </style>
    
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

     <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>

    
    </div>
    <table class="detailstable">
        <tr>
            <td>
                <table style="width: 100%;">
    <tr>
        <td>
            <asp:Label ID="lblHeading" runat="server" CssClass="lbl" 
               ></asp:Label>
        </td>
        <td class="style6">
            </td>
        <td>
            </td>
        <td>
            </td>
    </tr>
    <tr>
        <td class="style8">
            <asp:Label ID="lblSubHeading" runat="server" CssClass="lbl"></asp:Label>
        </td>
        <td class="style9">
            </td>
        <td class="style8">
            </td>
        <td class="style8">
            </td>
    </tr>
    <tr>
        <td >
            From*:</td>
        <td class="style6">
            <asp:DropDownList ID="ddlFrom" runat="server" AutoPostBack="True" CssClass="ddl"
                onselectedindexchanged="ddlFrom_SelectedIndexChanged">
            </asp:DropDownList>
        </td>
        <td>
            Branch*:</td>
        <td>
            <asp:DropDownList ID="ddlBranch" runat="server" CssClass="ddl"
                onselectedindexchanged="ddlBranch_SelectedIndexChanged" 
                AutoPostBack="True">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td >
            Broadcast:</td>
        <td class="style6">
            <asp:CheckBox ID="chkBroadcast" runat="server" 
                oncheckedchanged="chkBroadcast_CheckedChanged" AutoPostBack="True" Enabled=false/>
        </td>
        <td>
            Unit*:</td>
        <td>
            <asp:DropDownList ID="ddlUnit" runat="server" CssClass="ddl"
                onselectedindexchanged="ddlUnit_SelectedIndexChanged" AutoPostBack="True">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            </td>
        <td class="style6">
            </td>
        <td>
            SO Code:</td>
        <td>
            <asp:DropDownList ID="ddlSOCode" runat="server" style="height: 22px" CssClass="ddl"
                AutoPostBack="False">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <table>
                </table>
            <table cellpadding="0" cellspacing="0" class="style1">
                <tr>
                    <td class="pix8" >
                        </td>
                    <td>
                        </td>
                </tr>
                <tr>
                    <td class="style7">
            <asp:Button ID="btnCreate" runat="server" Text="New Message" 
                onclick="btnCreate_Click" style="height: 23px" Width="89px" CssClass="btn2"/>
                    </td>
                    <td>
            <asp:Button ID="btnSearch" runat="server"
                style="height: 23px" Text="Search" onclick="btnSearch_Click" CssClass="btn" 
                            Height="24px" Width="76px" />
                    </td>
                </tr>
                <tr>
                    <td class="pix8" >
                        </td>
                    <td>
                        </td>
                </tr>
            </table>
            </td>
        <td colspan="2">
            &nbsp;</td>
    </tr>
    </table></td>
        </tr>
        <tr>
            <td>
    <uc2:UCGrid ID="UCGrid1" runat="server" Visible="False" />
            </td>
        </tr>
        <tr>
            <td>
    <uc3:UCGridButtons ID="UCGridButtons1" runat="server" Visible="False" />
            </td>
        </tr>
    </table>
  </asp:Content>
